home *** CD-ROM | disk | FTP | other *** search
-
- I'm writing a top-down racing game, which involves x number of cars
- racing around a track, with inertia etc. Each car has two velocities, X
- and Y, which can be positive or negative, to indicate direction (ie X=4,
- Y=4 vehicle going South East). I want to get some sort of "bounce"
- effect when two cars collide, making it as realistic as possible, rather
- than just throwing both cars off a bit and slowing them down. To do this
- i have to recognise which way the cars are facing (easy), what speed
- they are going in that direction (easy), which car hit which car (dunno
- how to do) and what the consequences are (Erk!). For example, if car 1
- which is going South at speed 4, hits Car 2 going East at Speed 3, what
- happens to both cars? Realistically, Car 1 should slow down a bit, and
- car 2 should accelerate briefly southwards, perhaps slowing down is
- speed in the other directions. I really want to do this to give th
- eplayer the option of "Ramming" the other cars into obstacles etc. I've
- got the inertia, background collisions, pick ups, power ups, artificial intelligence, and just
- about everything else done, its just the car/car collisions that i cant
- seem to get my head round. Has anyone got any ideas on how to tackle the
- problem? I suppose their really should be some sort of Newtonian Equasion
- that should solve it..help!
-
- The game itself is based around a certain UK TV program, and features 2
- megs of samples, 1 meg of anims and 2 megs of digitised pics..at the
- moment! Its HD and 2 meg only at the moment, but a cut down A500 version
- will be availble..hopefully!
-
- Any help appreciated!
-
- Lud.
-
- pl@soton.ac.uk
-
-
-